﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace QuestTools
{
    class WinApi
    {
        static public uint WS_CHILD = 0x40000000;
        static public int GWL_STYLE = -16;
        
        [DllImport("user32.dll")]
        public extern static int GetWindowLong(IntPtr hWnd, int nIndex);
        [DllImport("user32.dll")]
        public extern static int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong);
        [DllImport("user32.dll", SetLastError = true)]
        public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent);
        [DllImport("user32.dll")]
        public extern static IntPtr GetDesktopWindow();
    }
}
